package Lexer

import "strings"

type Lexer struct {
	SrcCode         string //源码
	SrcCodeFileName string //源码文件名
	CurrentLine     int32  //当前的行数
}

func (this *Lexer) hasPrefix(str string) bool {
	return strings.HasPrefix(this.SrcCode, str)
}

func (this *Lexer) next(n int32) {
	this.SrcCode = this.SrcCode[n:]
}

func (this *Lexer) skipWhiteSpaces() {
	for len(this.SrcCode) > 0 {
		if this.hasPrefix("--") {
			//TODO
		}
	}
}

func (this *Lexer) skipComments() {

}
